﻿Ext.define('Sofia.controller.Visualize',
{
    extend: 'Ext.app.Controller',
    views: ['Sidebar', 'tab.Visualize'],

    refs:
    [{
        selector: '.sidebar',
        ref: 'sideBar'
    }],

    init: function () {
        this.control(
        {
            '#HeaderPanel #VisualizeButton':
            {
                click: this.onVisualizeClick
            }
        });
    },

    onVisualizeClick: function () {
        var sideBar = this.getSideBar();
        sideBar.setActiveTab(2); //Visualize tab
    }
});